<form action="<?php echo $this->action; ?>" method="post">
  <table border="0">
  <tr>
  <td>Nome:</td>
      <td colspan="3"><input name="ds_nome" type="text" id="ds_nome" value="<?php echo $this->ds_nome;?>" size="55"></td>
  </tr>
  <tr>
  <td>CPF:</td>
      <td><input name="ds_cpf" type="text" id="ds_cpf" value="<?php echo $this->ds_cpf;?>" ></td>
  </tr>
  <tr>
      <td colspan="4" align="right"><input type="submit" name="find" id="find" value="Consultar"></td>
    </tr>
  </table>
</form>
<?php if ($this->dadosConsulta != null && count($this->dadosConsulta) > 0) {?>
<table  id="item" class="table displaytag">
	<thead>
    <tr>
      <th class="sortable"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "1", $this->asc);?>">Nome</a></th>
      <th class="sortable"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "2", $this->asc);?>">CPF</a></th>
      <th class="sortable"><a href="<?php echo UtilController::trataLinkOrdenacao($this->parametrosConsulta, $this->ordemAtual, "3", $this->asc);?>">Sexo</a></th>
      <th scope="col">&nbsp;</th>
      <th scope="col">&nbsp;</th>
     </tr>
    </thead>
    <tbody>
    <?php $grid = 0;
     foreach($this->dadosConsulta as $item) :
     $classgrid = $grid % 2 == 0 ? "row_off" : "row_on";
     $grid++;
     ?>
    <tr class="<?php echo $classgrid;?>" onMouseOver="this.style.backgroundColor='#FFF4B7';" onMouseOut="this.style.backgroundColor='';">
      <td><?php echo $item['ds_nome'];?></td>
      <td><?php echo $item['ds_cpf'];?></td>
	  <td><?php echo $item['ds_sexo'];?></td>
      <td><a href="<?php echo $this->baseUrl; ?>/funcionario/edit/id/<?php echo $item['id_funcionario'];?>"><img src="/bntmercosul/public/images/edit.png" border="0"></a></td>
  	  <td><a href="<?php echo $this->baseUrl; ?>/funcionario/excluir/id/<?php echo $item['id_funcionario'];?>" onClick='return confirma_exclusao();'><img src="/bntmercosul/public/images/remove.png" border="0"></a></td>
    </tr>
    <?php endforeach; ?>
    </tbody>
  </table>
<?php }?>